package com.ruoyi.t.mapper;

import java.math.BigDecimal;
import java.util.List;
import com.ruoyi.t.domain.TOrderClientPayment;

/**
 * 订单客户收款Mapper接口
 *
 * @author YY
 * @date 2025-02-06
 */
public interface TOrderClientPaymentMapper
{
    /**
     * 查询订单客户收款
     *
     * @param id 订单客户收款主键
     * @return 订单客户收款
     */
    public TOrderClientPayment selectTOrderClientPaymentById(Long id);

    /**
     * 查询订单客户收款列表
     *
     * @param tOrderClientPayment 订单客户收款
     * @return 订单客户收款集合
     */
    public List<TOrderClientPayment> selectTOrderClientPaymentList(TOrderClientPayment tOrderClientPayment);

    /**
     * 新增订单客户收款
     *
     * @param tOrderClientPayment 订单客户收款
     * @return 结果
     */
    public int insertTOrderClientPayment(TOrderClientPayment tOrderClientPayment);

    /**
     * 修改订单客户收款
     *
     * @param tOrderClientPayment 订单客户收款
     * @return 结果
     */
    public int updateTOrderClientPayment(TOrderClientPayment tOrderClientPayment);

    /**
     * 删除订单客户收款
     *
     * @param id 订单客户收款主键
     * @return 结果
     */
    public int deleteTOrderClientPaymentById(Long id);

    /**
     * 批量删除订单客户收款
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteTOrderClientPaymentByIds(Long[] ids);

    BigDecimal sumPrice(String clientName);
}
